import request from '@/utils/request'

// 查询订单
export function getOrderListAllPage(params) {
  return request({
    url: 'order-master/getOrderListAllPage',
    method: 'get',
    params
  })
}

// 查询订单详情
export function getOrderInfo(orderId) {
  return request({
    url: `order-detail/${orderId}`,
    method: 'get'
  })
}

// 查询订单日志
export function getListByOrderId(orderId) {
  return request({
    url: `order-log/${orderId}`,
    method: 'get'
  })
}

// 发货
export function saveSend(data) {
  return request({
    url: 'order-master/saveSend',
    method: 'post',
    data
  })
}

